package com.java.poc.jaxws.localclient;

import java.net.URL;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;

import com.java.poc.jaxws.ws.HelloWorld;

public class HelloWorldClient {
	public static void main(String[] args) throws Exception {

		URL url = new URL("http://localhost:9997/ws/hello?wsdl");

		QName qname = new QName("http://jaxws.poc.java.com/", "HelloWorldImplService");

		Service service = Service.create(url, qname);

		HelloWorld hello = service.getPort(HelloWorld.class);

		System.out.println(hello.getHelloWorldAsString("rupesh"));
	}
}
